﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Work
{
    class Program
    {
        static void Main(string[] args)
        {
            //非静态调用
            Information info = new Information();
            info.id = 06;
            info.name = "黄炎榕";
            info.sex = "男";
            Console.WriteLine("座号:{0}\n姓名:{1}\n性别:{2}",info.id,info.name,info.sex);

            Console.WriteLine("\n");

            //静态调用
            Text.id = 666;
            Text.name = "神仙";
            Text.sex = "仙女";
            Console.WriteLine("座号:{0}\n姓名:{1}\n性别:{2}", Text.id, Text.name, Text.sex);

            Console.WriteLine("\n");

            Cinema cinema = new Cinema();
            cinema.id = 08;
            cinema.name = "倩女幽魂·人间情";
            cinema.grade = 8.3;
            Console.WriteLine("电影编号:{0}\n电影名字:{1}\n电影评分:{2}", cinema.id, cinema.name, cinema.grade);
            Console.ReadKey();
        }
    }
}
